let AssetsManager = cc.Class({
    extends: cc.Component,

    properties: {

    },

    statics: {
        instance: null,
    },
    ctor() {
        if (!AssetsManager.instance) {
            AssetsManager.instance = this;
        }
    },
    onLoad() {
        console.log("AssetsManager-onLoad");
        if (AssetsManager.instance == this) {
            cc.game.addPersistRootNode(this.node);
        } else {
            this.node.removeFromParent(true);
        }
    },

    start () {

    },

    // update (dt) {},
});
